import request from '../utils/request'

//登录
async function login(data) {
    return await request.post('/api/login', data)
}

//注册
function register(data) {
    return request.post('/api/register', data)
}

//获取房源数据
function getHousingList(data) {
    return request.post('/api/housing', data)
}

//房源删除
function delHousingList(data) {
    return request.post('/api/housingdel', data)
}

//房源编辑
function editHousingList(data) {
    return request.post('/api/housingedit', data)
}

//房源添加
function addHousingList(data) {
    return request.post('/api/housingadd', data)
}

//获取直播数据
function getLiveList(data) {
    return request.post('/api/live', data)
}

//获取团购数据
function getGroupList(data) {
    return request.post('/api/group', data)
}
//三级联动
function cele(data) {
    return request.post('/api/cele', data)
}

export {
    login,
    register,
    getHousingList,
    delHousingList,
    editHousingList,
    addHousingList,
    getLiveList,
    getGroupList,
    cele
}